"handles err 401, clears out form when deleting and editing"