Added a keypress handler and made sure it doesn't login with empty password. Thanks ldapjs