Added validation classes, updating php