worked on reading data from input fields