Added a handler for creating a user.

The register form now adds a user to the database.