Fix checks for an authenticated user.