Validate the search parameter as being one of the specified columns
* Comment the code better and format a few lines better.