added logout function to remove auth key fronm local storage