Use Vincent's utility class to simplify authentication. Reviewed by Vincent.