adding functionality to the contact form