Fix unauthenticated user error