Fixed logout to destroy user and reset credentials