Added validation rules to users model