Minor fixes to get it working and allow me to create an account.
Merge pull request #1 from TheDreamer/master

Minor fixes to get it working and allow me to create an account.