fixing error message z-index
close error message on document click [#50673641]