Adding a little error handling to  petition submission