Fixed auth to not check index and register.