Fixed missing logged_in\? checks