Refactored the registerAction in UserBundle, RegisterController