Added basic login code to main page.