modified is_logged_in rest call bug fix