A simple PHP class based html form validator