invalid request functionality