Fixes a security bug which enabled registered users to change their userType
Merge pull request #40 from rmdstudio/master

Fixes a security bug which enabled registered users to change their user...