How to use hidden values for input data in the form