adding functionality to contact form