Making the code auth work