modifed login page class and tests