Implementation of submitIdea, submitTopic and error handle.