added the connection as an argument in the method validation. If the
return of the validation is not a string object itself is returned.
added instanceMethods
Merge pull request #90 from peruzzo/master

Added instance methods to model and modified model validation