Got auth mostly working