add connect and disconnect function, toto : remove username from form and use http session variable