Fixed registering a new user