Adding invalidate method to UserAuthenticator