added check_user_exists() and @results output