Fixed logout not working