Checking if we are logged in or not.