Added unauthenticate function