Added logic to allow form submission to default action on the form element itself.