fix form errors for symfony 2.5

Make form errors compatible with symfony 2.5 and up.
https://github.com/symfony/symfony/blob/master/UPGRADE-2.5.md#form