display error in flash
use correct type for name