check if user was logged in