integradet full decorator pattern for channels. login working, switches to secure channel. logout working, switches to unencrypted channel