updated validation for user