Fixed auth steps in main