index page layout, user login functionality