Fix delete contributor to prevent contributor from deleting themselves. Introduce function callWhenPostValid to simplify code