implemented simple second validation
Merge pull request #4 from calmvp/invalidation2

implemented simple second validation