Improve flash, ensure server actions return error