raise validation error instead of an assert when enforcing pw length
enforce pw length in changelocalpassword