added comments to the validatepanel.java