fix null user when not logged in