Adds a logout function to the bootstrap file