checking and deleting auth codes