Turn off the device Hold the power+voloume up+home button.After 20 sec you should see a Screen with options like wipe etc
Use Voloume up button and voloume down button to select anr power button to confirm.
Go to Clear or wipe cache using the voloume buttons and select by using power button.
Confirm it.
Now go to reboot system and confirm it.
You should be able to type your password in.