validate_input function

Validates input to the DOSPortfolio function.