JS HTML bugs on login page