PHP object oriented form generator and validator