Added basic functionality to register a user