Added redirect for logout. THIS IS UNTESTED.