Add serializer for validations.