moved the auth_check into a new folder