adding the logout function. fix senheng_www issue 5