Default [Q] Cant log in on "too many pattern attempts" screen

Hi everyone.I have a Samsung Galaxy Ace.Recently i changed my unlock pattern but i forgot it.Now im at the "too many pattern attempts" screen(i need to sign in to google account).I know my ID and password but it still says invalid username or password when i type it.I wanted to do a factory reset and i have a problem there too.When i boot into recovery mode it automatically opens cwm recovery.When i go to wipe data there,it says data successfully wiped but i still need to sign in with google account.I dont have internet conenction on phone since i cant enable Wi-Fi because the phone is locked.Can somebody help me?