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

Once I got it to tell me what it didn't like "Fatal error: Cannot use object of type stdClass as array..." and seeing why it wasn't seeing that I had enabled account creation...I got it working for me :)