Fixed password validation.