Fixed bug with name not being saved during registration