Fixed problem with forms not always submitting