updated validation for users model