Added comment.
Deleted dublicate function validateDemo