Fixed some auth stuff