fixed the contact form to work properly with ajax