optimize login page and other files