WIP invalid input checks