Implemented the key listeners for logging in using the ENTER KEY.