alert if format is wrong