Fix for internet explorer and prevent empty submission