Allowed the error message to be hidden before being displayed.