small changes in register user