validate_user and validate_admin in users.py duplicate the name/email checks. Extract them into a shared helper function called _check_basics and use it from both. Behaviour must not change; test_users.py must still pass.