Fixed login page to display template