Create function for submitting on check of a new task.