Updated to use 'given' instead of multiple ifs
Fixed confphase1 and confphase2 validation to use real typed validation