fix registering new user