completed isIncomeValid checking function for Income class