Fixed logout issue with by making the link a get function