Revised contact form function (JHS)