Adds password validation.