Only turn on ajax form submissions after the socket is connected