adding error handling for contact form