Fixing auth sequence