fixed validation some more and added a comment