How to automatically clear input value in hidden field