Added missing model subpackage to repo.
Fixed user registration code.