adds the password validator