handle reset authentication gracefully