fixed js error where login_a elt does not exist