Adds `validate` method to backbone's collection.