added field validation to user_schema