Created validate class
Merge pull request #9 from davidkryzaniak/master

Created separate class for validation functions