Add event for posts type

The posts should be checked when submitting a post. This event handles that.