some fixes including sending the errors and a fix to the post array