finishes auth stuff