Add some lifecycle validation.

You can omit passing name by doing:

```
validateHandler(lifecycle.PostStart).Prefix("postStart")...
```