Hiding error message that appear on closing popup