Fixed broken javascript on login page