add isPasswordValidation method