Updated the way auth works