Code to add new data from form input