Fixed return value for failed login