add validation based on Kwalify (closes #77)