update contact form validation for php 5.3+