Nicely handle invalid session
Add logout command
Nicer handling of failed login.