Added better error responce for Alert and Edit submissions