fixed notification popup on form save

the popup was showing all the time, this makes it show only when there
is a success or an error message.