password and confirm password validation added.