Incorporated login page into templating system so messages are flashed on login screen