loggin js issue