Tidy new auth script.
Minor tidying.