Fixed login page generation