Fixed error with login page generation