Consider the following two statements regarding the implementation of the anti-defection law:
1. If an elected member voluntarily gives up his membership of a political party;
2. If an elected member votes or abstains from voting in such House contrary to any direction issued by his political party or anyone authorized to do so, without obtaining any prior permission.
Which of the above 2 statements is a criteria for the anti-defection law?