add error handling for creating question