Updated custom validator for saving users.