added auth to main