add the validation