added kandy implementation for login logout