Adding login, logout for local