added form-contact error handling logic