check to make sure user logged in