updated validation for user model