added comments to the methods in the validatePanel.java