Add ability to create user to register class and fixes module import bug

Integrating with database.