Added a semi colon to sendURL and added console output.
Changed name attributes to the form and added special characters for the ng-pattern directive for the textarea.