router always sets 404 response code bug fixed
some sanitizing and validation for user input