Hide error message if add modal is dismissed by clicking