error handling for createQuest functional