A php validation script using oop style