I couldnot able to findout solution so please give me some idea how to troubleshoot this issue.
Here is the sample even i added "required" attribute in checkbox that is no visible for guest so only when it's visible validation should work else it shouldnot be.
Simply you can hide your input by css
.hiddenDiv input
{
display:none;
}
Error will show but input will be hidden and you can also use bootstrap hidden class to do this.
I couldnot able to findout solution so please give me some idea how to troubleshoot this issue. Here is the sample even i added "required" attribute in checkbox that is no visible for guest so only when it's visible validation should work else it shouldnot be.