When we are saved we allow the Spirit to lead us,in which we will do works of the Spirit,and can abstain from sin,which is a requirement to be saved,which is obedience to do what is right,which the Bible says some people deny the Spirit leading them,ever learning and never able to come to the knowledge of the truth,and are lovers of pleasures,more than lovers of God,and they will not make it.
The Bible says if we sin wilfully,there is no more sacrifice for that sin,if we stay in it,but a fearful looking after of judgment,and condemnation.
After we confess Christ,and are saved,we cannot live how we want as long as we confess Christ,which means we are to do good,and abstain from evil by the Spirit,and if so then we are being obedient,but that one thing we have to do to be obedient,is to allow the Spirit to lead us,but not all do that and confess Christ,but do not allow the Spirit to lead them,and are not obedient,but if they confess Christ and deny the Spirit,being disobedient,are they still saved because they confess Christ.
The Bible says they are not saved,and we have a choice after we come to God and are saved,for the fact that we still have the capacity to sin after we are saved if we desire,testifies that it is still our choice to be saved or not,for if we confess Christ,but do not do right in by abstaining from evil then we are not saved,so then our obedience is necessary for salvation,since we have a choice still after we are saved.
Mat 7:21 Not every one that saith unto me, Lord, Lord, shall enter into the kingdom of heaven; but he that doeth the will of my Father which is in heaven.
Mat 7:22 Many will say to me in that day, Lord, Lord, have we not prophesied in thy name? and in thy name have cast out devils? and in thy name done many wonderful works?
Mat 7:23 And then will I profess unto them, I never knew you: depart from me, ye that work iniquity.
For people who appear to think that our obedience does not matter,or our lifestyle does not matter,we are saved as long as we confess Christ,tell it to these people,that even though they labored for the kingdom of God,could still not be with Jesus,for Jesus said they did not do the will of the Father,and were workers of iniquity,which means plain and simply,they were disobedient.