Add user password md5 encrypt and add logout function.