correction javascript login