cleaned the validation