Added password validation