fixed bugs on login page