Changing the validation method, now using the model attributes and not the  array