Add authenticate user method.