If you are dealing with two classes, the random accuracy should be around 0.5 instead of a perfect 0 (flipping the predictions would yield a perfect score of 1.0).
Could you post the code to calculate the validation predictions and accuracy so that we could have a look?