also check if user logged in before login