fix connection listener bug, add MD5 password encryption