bug fix for invalid logins