widget/contact: reduce code indentation of post check