add validator to password