correct the validation process