Refactored some methods on UserRegisterActivity and User.