add is_logged control