simplify authenticate method