Moving auth to the ui