registering new task in json file