handle the user_id blank case