Замена проверки errors на is_valid
Merge pull request #18 from bourivouh/master

Use is_valid() instead of 'not errors'