popup log in js fix