JS login check take 2