Client gets disconnected on submit