added error feedback to post controller