Added a reigsterUser method.