Use preventDefault in error handler