modified is_logged_in rest call