Added feature to show server errors in submit event