fixed #24 failed logins throwing error