This PHP class can validate user input for security purposes