Changed the method IsValid to Validate. IsValid misleads to be a instance method, not a static one.
Cleaned up code