I had the same problem. Resetting factory defaults was not an option because i had too much data on the device that I wanted saved before I do the reset. My solution;
1. Buy an OTG cable (circa USD 4)
2. Use OTG cable to connect samsung device to a PC keyboard
3. Use keyboard to login
4. Go to...