Bugfix where accessing property of a user even if login failed