small change to login js