added new layout to loginpage and fixed index page