validate the expression when clicking 'submit' button in the custom sensor