Modify the position of error message and set the initial visibility of some area to invisible.