Refactored CreateUser class.