Check for valid inputs in more user routes

Fixes #278
Fixes #279