fixes password order of chars and digits