Added a parameter to logout to skip redirect