[fix] fixing nullpointer if no user logged in