export authenticate method