[api2] add serializer for validating fields when creating new account