fix getting authenticated user