simple plugin to validate a form based on a number of criteria