bug fix: use input element name instead of id