Update functions.php

added validation for the contact form for anti-spam purposes