Fixed problem finally by implementing InputFilterProviderInterface