Some finishing touches on the auth stuff.