Add password validation directive its tests and html sample