Validate names in api