Validation for VPT category form

Adding validation for the VPT category form, refactoring VPT validation in general, and adding a base edit class which featured and category forms extend from.