check for invalid post