add logout function to delete token and full refresh page