added problem validation