Input validation

Commit by commit review
Linked to https://www.agileplannerapp.com/boards/105200/cards/6340