PHP classes for input (string and file uploads) validation