Added password validation.