make error box wider.

also check for error message element before hiding. currently throwing Uncaught TypeError. remove console.log.