fix dispaly error message with AJAX