added method for login/logout actions