added login form to index page