Added backend functionality to contact form.