added message and validator classes to new directory