Fixed logout method in routes