Fixes #13 and #14.

The user constructor was actually the issue, with the latest else
statement not being paired with the right if statement. That completed
the constructor code and fixed the cookie login issue.