Update auth routine