Added getEmailErrorMessage function to the AddForm
Added try catch block around sendApprovalPendingEmail