adding validation for user models