message changed, logout function added