Change authentication logic.