save the entered data for each category on local storage