Added and tested password validation.