Adding password validation