Fixed a little bug about allowing password logins