auth stuff and fixed routing issues