a slight modification to hide and show error message on general.gsp