Added the validate function
Merge pull request #3 from NPNGPO/Sprint1

Added the validate function