PHP reusable form validation and mail scripts