Adding password validator.