Update check auth to use mongo