make error box wider. check for error message box before hiding. currently throwing Uncaught TypeError.