[WIP] Input validation refactoring

Refactor input validation to make it more consistent.

Todo
* [ ] Tests
* [x] docstrings
You are right, I introduced it before thinking about the default behavior. I'll remove it.