added clear error method on every page load