deleted and uncomment saving the register user