Updated the example to make it work with the new function prototypes
I also fixed a typo that would prevent bob from logging in.