Handled 400 errors in modals