Added support to catch invalid data on POST

RFC @doomspork.

This will catch invalid data on post.