Clear validation when closing modals