portfolio object fix. added validation