Add password validation and test