Form is not submitting, submit button just hangs