Add confirm AD password field. Fix bug in JS

Change-Id: I226890ebfaee5b11a3544d41b26b0b8f9ddebdfc