Preventing authentication instead of forcing logout