fixing form post issue with .submit() (refs #983)