check if user has logged in