Small fix to see if the user actually logged in