Some auth stuff working, but still incomplete