Automatically log-in a user when they register. Fixes #10