Added support for users to register [Issue #20]