Changed register user method.