pulled out some logic for validating elements forms in preparation of combining the way the two are being handled.