You need to hire a criminal defense attorney in your area ASAP. Your attorney will review the facts and case law as to whether or not this is a valid "consent" under state and federal law. Get competent legal counsel.
I am trying to give you a general answer to your question. We do not have an attorney-client relationship by this response on the avvo website. I have not been retained to represent you. I am licensed to practice law in Kentucky and in federal court in this state and the Southern District of Indiana. You need to seek legal advice from an attorney licensed to practice in your area..
There are a questions that need to be asked here. You should speak directly with a qualified local attorney. Good luck.
Whether you have provided consent sufficient to dispense with the warrant requirement is a factual question that requires more details to fully answer. While consent does not necessary remain valid after initial contact with police, whether it remained valid in your case--and what implications it has for your defense--are something that require further investigation and more details. You shouldn't be posting those details here; speak in confidence with a criminal defense attorney in your area to see what might be done about your charge and this search.
Licensed in the Commonwealth of Virginia. The Creekmore Law Firm PC | 540-443-9350 | http://www.creekmorelaw.com. Please understand that no attorney-client relationship exists until entry of a representation agreement setting forth the terms and conditions of our engagement. Every person's circumstances are different, so nothing here should be taken as legal advice for your situation or as creating an attorney-client relationship. No outcome can ever be guaranteed.