Changed logout to a redirect