Added register page and its functionality and login check.

A user can now register and is stored in the database. Then that
database is checked to authenticate logins.