created validations for incoming data to make sure it is in the right form and the values are valid for sorting
Merge pull request #9 from adowns01/validations

created validations for incoming data