Added a UserManager class.
Moved user persisting call to UserManager.
Added user registration.