updated header login js