Prevent error message from activation on page load