Bug fix from failed login