Tried to fix saving bug. Unified error messaging with AJAX