Fix bug in user registration
Merge pull request #17 from astephenb/master

Fix bug when user registers
Merge pull request #18 from astephenb/register-bugfix

Register bugfix