Register new users and correct some bugs due to Symfony 2.5