Login module functional

No template added yet. Module handles logging in and registering with a
correctly configured database.