modified check auth