Added hiding message container when showing error container in form JS