logout cleanup
login error handling