Ignoring hidden elements when submitting form