Implemented condintional blocks in section validation