now inputs creates task and clears the form