display error n abort in posts submit js