Adds password validation