Adding the validation