checks if you're logged in