add logout method in helper