[FEATURE] Move planning element validation to work package

Implements [ticket 1789](https://www.openproject.org/issues/1789)