adds a password validator sample