Add serializer methods to FormEntity.
clean up.