Updated error message to use addActionMessage