Prevent error div from showing on page load