SCAL-487: Handling errors from JS forms