added a method to get hidden field value