after adding password validation