Add LOGIN & LOGOUT command handler

1. LOGIN handler
2. LOGOUT handler