added validation of input values to investment plan controller