Added the validation rules