adding on key press for login to submit