Got the login working where users are being authenticated from the
database.