Display error messages in modal