Understanding Drug Detox vs. Addiction Rehab

March 4, 2025

Discover the difference between drug detox and drug addiction rehab for effective recovery strategies.

Understanding Drug Detox

Understanding the purpose and process of drug detox is essential for individuals seeking recovery from substance use disorders. Drug detoxification, often referred to simply as detox, is a medically supervised process designed to help individuals eliminate drugs or alcohol from their system safely and effectively.

Purpose of Drug Detox

The primary goal of a drug detox program is to address the physical dependence on substances, helping individuals manage acute withdrawal symptoms. Detox is not a cure for addiction; rather, it is a critical first step in the recovery journey that sets the foundation for further treatment options, such as rehabilitation programs. By regaining physical stability, individuals become better prepared to engage in psychological and behavioral therapies necessary for long-term recovery [1].

A structured detox process enables the body to adapt to functioning without drugs, safely managing the discomfort that often accompanies withdrawal. The detox programs can vary in structure and support depending on individual needs and the severity of addiction. There are different types of detox programs available tailored specifically for substances like alcohol, opioids, benzodiazepines, and stimulants [1].

Detox Program Type Target Substance Key Feature
Medical Detox Alcohol Supervised withdrawal
Opioid Detox Opioids (e.g., heroin) Medication-assisted
Benzodiazepine Detox Benzodiazepines Gradual tapering
Stimulant Detox Stimulants (e.g., cocaine) Structured support

Importance of Medical Supervision

The necessity of professional medical supervision during the detox process cannot be overstated. Effective monitoring and management of withdrawal symptoms are crucial to ensure a safer detox experience. Medical professionals play a vital role in assessing vital signs and determining the appropriate interventions needed during the process. Through continuous support, they can mitigate discomfort and reduce the risks of complications or relapse [2].

Without proper oversight, individuals undergoing detox may face increased health risks, including severe withdrawal symptoms that could potentially lead to medical emergencies. Supervision allows for intervention with medications that can alleviate pain, anxiety, and other distressing symptoms associated with withdrawal. Together, medical staff and those in detox create a safer environment, facilitating the start of recovery on a solid footing.

Understanding the distinction between detoxification and addiction rehabilitation is fundamental for anyone navigating the recovery path. For more information on the differences between these two phases, consider exploring the difference between drug detox and drug addiction rehab.

Drug Detox Process

The drug detox process is a structured approach designed to safely assist individuals in eliminating harmful substances from their bodies, paving the way for recovery. This process typically involves three key stages and varies in duration depending on several factors.

Three Key Stages

The drug detoxification process generally consists of three essential stages:

  1. Assessment
    During this initial stage, healthcare professionals evaluate the individual's physical and mental health, addiction severity, and any co-occurring disorders. This assessment helps in formulating a personalized detox plan.

  2. Stabilization
    In this phase, medical professionals provide support to manage withdrawal symptoms and ensure the individual's safety. This may involve administering medications to ease symptoms and monitor vital signs closely.

  3. Transition to Treatment
    After stabilization, individuals are prepared for the next step in their recovery journey. This often involves transitioning to treatment programs, such as rehabilitation, where comprehensive support continues.

Stage Description
Assessment Initial evaluation of health and addiction severity
Stabilization Management of withdrawal symptoms and ensuring safety
Transition to Treatment Preparation for further treatment and recovery support

These stages are critical in the detoxification journey, as they provide both a medical framework and a foundation for ongoing recovery efforts.

Duration and Setting Variations

The duration of the detox process can last anywhere from a few days to weeks, generally averaging about 7+ days [3]. However, the specific length of detox varies significantly based on several factors, including the type of substance involved and the severity of addiction.

For instance, alcohol withdrawal may take up to a week, while benzodiazepines withdrawal might require up to two weeks or longer.

Additionally, detox programs can be conducted in different settings:

  • Hospitals
  • Detox centers
  • Specialized facilities

Each setting is equipped to handle the medical needs of individuals going through detox and provides a safe environment for recovery. Understanding the difference between drug detox and drug addiction rehab is essential for determining the appropriate treatment path for those seeking help. While detox is a crucial first step, it typically sets the stage for further addiction treatment and recovery efforts.

Different Types of Drug Detox Programs

Understanding the various options for drug detox programs is important for individuals seeking recovery. Each program is tailored to meet specific needs based on the individual's substance use and circumstances.

Tailored Programs Available

There are different types of drug detox programs designed according to the severity of addiction and personal circumstances. Common programs focus on substances such as alcohol, opioids, benzodiazepines, and stimulants. Tailored programs consider individual factors like age, health status, and previous treatment history to provide the best support during detox.

Substance Type Program Focus
Alcohol Medical supervision and psychological support
Opioids Medication-assisted detox options
Benzodiazepines Gradual tapering with medical oversight
Stimulants Behavioral support and health monitoring

For more insights into symptoms related to withdrawal, check out our article on common detox symptoms.

Substance-Specific Approaches

Substance-specific detox programs are tailored to address the unique challenges associated with different drugs. Each substance may have distinct withdrawal symptoms and recovery needs. For instance, opioid detox might incorporate medications such as methadone or buprenorphine to ease withdrawal symptoms.

Benzodiazepine detox usually requires a gradual tapering strategy to reduce the risk of seizures and severe withdrawal symptoms. Alcohol detox programs often include monitoring due to the potential for serious complications like delirium tremens.

The choice of detox program should align with the individual's needs and may vary between inpatient and outpatient settings. Inpatient care provides 24-hour supervision, while outpatient programs allow individuals to attend therapy while staying at home. The specific setting chosen will depend on the person's preference, severity of addiction, and the level of support required.

Understanding the difference between drug detox and drug addiction rehab is essential as detox focuses primarily on withdrawal management, while rehab addresses the psychological and emotional aspects of addiction [2].

Drug Detox vs. Addiction Rehab

Understanding the distinction between drug detox and addiction rehab is pivotal for anyone exploring treatment options for substance abuse. Each serves a unique purpose in the recovery journey.

Different Treatment Goals

The primary focus of drug detox is to manage withdrawal symptoms and rid the body of substances. This initial phase concentrates on physical dependence, ensuring that individuals can safely transition away from the substance they are addicted to. While detox lays the foundation for recovery, it is only a part of a larger treatment plan [5].

In contrast, addiction rehab addresses the psychological and emotional aspects of addiction. The goal is to help individuals understand their addiction through therapy and counseling. This phase aims to equip them with skills needed for long-term recovery, modify their attitudes toward substance use, and develop coping mechanisms to handle triggers and stressors [6].

Psychological and Emotional Aspects

The psychological component of addiction can include intense cravings and emotional discomfort, which often accompany the physical withdrawal process. Individuals may face cognitive challenges that increase their dependence on substances. Addressing these issues requires a comprehensive approach that includes therapy, counseling, and support services [7].

Cognitive-behavioral techniques play a crucial role in modifying thought patterns related to drug use. Behavioral therapies can help individuals develop strategies for avoiding triggers, managing cravings, and coping with stress. Support groups like Alcoholics Anonymous (AA) and Narcotics Anonymous (NA) also contribute to accountability and community throughout the recovery process.

In summary, drug detox and addiction rehab serve distinct yet interconnected roles in the recovery journey. Detox focuses on physical withdrawal, while rehab addresses the complex psychological and emotional elements necessary for sustained recovery. For a deeper understanding of treatment methods and how they work together, visit our discussion on ways rehab facilities help you stay sober.

Medication-Assisted Detox

Medication-assisted detox is a method designed to make the withdrawal process safer and more manageable for individuals seeking to overcome substance dependence. This approach combines medical supervision with specific medications tailored to alleviate the discomfort of withdrawal symptoms.

Safer Withdrawal Management

For many individuals, managing withdrawal symptoms can be challenging and intimidating. Medication-assisted detox is considered a safer option compared to quitting drugs abruptly. It involves medical supervision to monitor and manage potential complications effectively. Medical professionals assess the individual's overall health and substance use history, helping to create a customized detox plan [4].

The medications used during this process aim to reduce common withdrawal symptoms, which can include nausea, anxiety, sweating, insomnia, and cravings. By alleviating these symptoms, the likelihood of a safe and effective detox increases significantly [2].

Common Withdrawal Symptoms Medications Used
Nausea Anti-nausea meds
Anxiety Benzodiazepines
Sweating Antidepressants
Insomnia Sleep aids
Cravings Opioid agonists

Professional medical supervision is crucial during the detoxification process, as it not only provides support but also monitors vital signs, thus reducing the risks associated with withdrawal.

Effective Recovery Support

Medication-assisted detox is often complemented by a holistic recovery approach that includes therapy and social support. A comprehensive strategy, addressing both physical and psychological dependence, is necessary for successful recovery.

This support structure may involve regular therapy sessions to help individuals develop coping mechanisms, deal with triggers, and address the emotional aspects of their addiction. Combining medication with therapeutic processes can greatly enhance recovery outcomes.

Individuals may also benefit from additional community resources and support groups, providing a sense of connection and shared experience. This network can play a significant role in maintaining sobriety and preventing relapse, demonstrating the critical importance of effective recovery support beyond just detoxification.

Managing addiction involves various strategies, including medication-assisted detox to ensure a safer withdrawal process and support throughout the treatment journey. This leads to a more thorough understanding of the difference between drug detox and drug addiction rehab, allowing individuals to make informed decisions about their recovery.

Holistic Approach to Recovery

A holistic approach to recovery recognizes that addiction affects various aspects of an individual's life, and therefore, treatment should encompass all these facets to achieve effective and lasting recovery.

Addressing Overall Well-Being

Focusing on overall well-being is crucial during the recovery process. Comprehensive detox programs are increasingly incorporating holistic techniques to ensure a well-rounded approach to addiction treatment. This encompasses not only the physical aspects of withdrawal but also the psychological and emotional challenges associated with addiction.

Holistic treatment may include:

  • Mindfulness and Meditation: Helping individuals to manage stress and emotions.
  • Nutrition Counseling: Fostering healthier eating habits that support physical recovery.
  • Physical Activity: Incorporating exercise to improve mood and overall wellness.
  • Support Groups: Programs like Alcoholics Anonymous (AA) and Narcotics Anonymous (NA) provide community and accountability during recovery.
Holistic Approaches Benefits
Mindfulness and Meditation Reduces stress and emotional distress
Nutrition Counseling Supports physical recovery and health
Physical Activity Boosts mood and aids in physical health
Support Groups Encourages accountability and community support

Long-Term Recovery Strategies

Developing long-term recovery strategies is vital for maintaining sobriety after detox or rehab. Drug rehabilitation, which goes beyond detox, focuses on addressing the psychological, emotional, and social aspects of addiction. These strategies include:

  • Coping Mechanisms: Teaching individuals effective ways to handle stress and triggers that may lead to relapse.
  • Behavioral Therapy: Techniques such as Cognitive Behavioral Therapy (CBT) help individuals change harmful behaviors associated with substance use.
  • Building Support Networks: Encouraging participation in community support programs that provide ongoing assistance, such as those mentioned previously.
  • Lifestyle Changes: Promoting changes in daily habits that foster a healthier and addiction-free lifestyle.

These strategies are essential for anyone navigating the complex journey from detox to sustainable recovery. Understanding the difference between drug detox and drug addiction rehab helps individuals make informed decisions about their treatment options, ultimately leading to a more successful recovery.

References

Learn More

Find More Resources

Can Motivational Interviewing Help An Addict Who Is Willing to Embrace Recovery?

May 30, 2025
Unlocking Change: The Power of Motivational Interviewing in Addiction Recovery

How to practice self-compassion and kindness during treatment

May 29, 2025
Cultivating Inner Resilience Through Self-Compassion During Treatment

Xanax Addiction Treatment

May 29, 2025
Comprehensive Strategies for Addressing Xanax Dependence

Understanding the Role of Genetics in Addiction

May 29, 2025
Genetic Foundations and Future Directions in Addiction Research

How to Become an Addiction Counselor Without a Degree

May 29, 2025
Pathways to a Fulfilling Career in Addiction Support Without Formal Degrees

Understanding Partial Hospitalization Programs in Addiction Treatment

May 29, 2025
Exploring Progressive Steps in Addiction Recovery

How to address feelings of guilt and shame in recovery

May 29, 2025
Breaking the Cycle: Addressing Emotional Barriers in Recovery

The Role of Community Resources in Outpatient Recovery Programs

May 29, 2025
Building Strong Community Foundations for Lasting Sobriety

Caught Up In the Heroin Epidemic

May 28, 2025
Unraveling the Complex Web of the Heroin Crisis

The benefits of therapy for exploring childhood experiences

May 28, 2025
Uncovering the Power of Therapeutic Interventions in Childhood Experience Recovery

Plugging the Hole

May 28, 2025
Sealing Gaps and Solving Problems: The Art of Plugging the Hole

Talk. They Hear You.

May 28, 2025
Empowering Parents to Prevent Underage Substance Use

The Role of Therapists in Medication Management Programs

May 28, 2025
Enhancing Patient Care Through Multidisciplinary Collaboration

How Intensive Outpatient Programs Support Work-Life Balance During Recovery

May 28, 2025
Balancing Acts: The Vital Role of IOPs in Maintaining Work and Family Life During Recovery

Important Things to Remember for Parents of Addicts

May 28, 2025
Navigating Parenthood in the Face of Addiction: Essential Guidance for Families

How to Use Technology to Support Addiction Recovery

May 27, 2025
Transforming Recovery: The Power of Digital Tools in Addiction Healing

How to maintain a balanced and fulfilling lifestyle after addiction

May 27, 2025
Building a New Life After Addiction: Strategies for Success

The Importance of Advocacy and Awareness in Addiction Recovery

May 27, 2025
Empowering Recovery Through Advocacy and Awareness

What Is State-Funded Drug Rehab?

May 27, 2025
Accessible Recovery: The Role of Government-Backed Addiction Treatment

Choosing the Right Rehab to Help You Succeed

May 27, 2025
Navigating Your Path to Recovery

How to Foster a Growth Mindset in Sobriety

May 27, 2025
Unlocking Resilience: Harnessing Growth Mindsets for Successful Sobriety Journey

How to Encourage a Loved One to Stay Engaged in Therapy and Recovery

May 27, 2025
Fostering Engagement and Support in Your Loved One's Recovery Journey

How to Choose the Right Treatment Program for Addiction Recovery

May 26, 2025
Unlocking the Path to Effective Addiction Recovery

Which Drug Side Effects Are Life-Threatening?

May 26, 2025
The Hidden Dangers of Common Medications: Recognizing Life-Threatening Side Effects

How to Stop Sex Addiction

May 26, 2025
Breaking Free from Compulsive Sexual Behaviors: A Comprehensive Guide

Drug Treatment Programs Don’t Seem to Help My Daughter

May 26, 2025
When Standard Drug Treatments Fail for Your Teen

The importance of creating a structured daily routine

May 26, 2025
Building Stability and Well-Being Through Routine

Understanding the Brain’s Healing Process During Sobriety

May 26, 2025
The Brain's Resilient Journey Toward Recovery

How Ambulatory Detox Helps Patients Maintain Daily Responsibilities

May 26, 2025
Flexibility and Support in Modern Substance Withdrawal Treatment

How to deal with feelings of loneliness during recovery

May 23, 2025
Navigating Emotional Isolation in Sobriety: Strategies and Support

How Long Does Ambulatory Detox Take? A Timeline for Recovery

May 23, 2025
Understanding Outpatient Detox: Duration and Key Milestones

The role of a therapist in guiding the recovery process

May 23, 2025
Supporting Recovery: How Therapists Foster Long-term Sobriety

Tips for Staying Sober During the Holidays

May 23, 2025
Navigating a Joyful, Sober Holiday Season

How to Stop Technology Addiction

May 23, 2025
Breaking Free from Digital Dependency: Strategies and Insights

America’s Killer Drugs – Which Drugs Cause the Most Overdose Deaths?

May 23, 2025
Fentanyl and Opioids Dominate America's Overdose Crisis

How to Stop Shopping Addiction

May 23, 2025
Breaking Free from the Shackles of Excessive Shopping

Taxing Cigarettes More Helps Reduce Alcohol Consumption

May 22, 2025
The Impact of Tobacco Taxes on Broader Public Health

Five Steps to Getting Clean and Sober

May 22, 2025
Embarking on the Path to Sobriety: Essential Strategies for Lasting Recovery

The Role of Accountability Partners in Ambulatory Detox Success

May 22, 2025
Strengthening Recovery Through Support: The Power of Accountability in Outpatient Detox

What Is Drug Abuse?

May 22, 2025
Understanding the Complexities of Substance Misuse and Its Broader Impact

Outpatient Addiction Treatment: What to Expect

May 22, 2025
Navigating the Path of Recovery with Outpatient Addiction Programs

How to transition from inpatient to outpatient care in recovery

May 22, 2025
Supporting Your Journey: Transitioning Smoothly from Inpatient to Outpatient Recovery

How to Overcome Challenges in IOP and PHP Treatment

May 22, 2025
Empowering Recovery: Strategies to Navigate IOP and PHP Challenges

How to deal with loneliness during addiction recovery

May 21, 2025
Breaking the Isolation: Building Connections and Resilience in Sobriety

How to stay inspired and motivated through self-reflection

May 21, 2025
Harnessing Self-Reflection for Sustained Inspiration and Motivation

The Role of Medication Management in Treating Co-Occurring Disorders

May 21, 2025
Enhancing Recovery Outcomes Through Strategic Medication Oversight

Rehab Centers in NJ

May 21, 2025
Comprehensive Guide to Addiction Recovery Facilities in New Jersey

5 Star Rehab Facilities Near Me

May 21, 2025
Luxury Rehabilitation Centers Offering Exceptional Care

How to Stay Connected to Your Support System Post-Rehab

May 21, 2025
Maintaining Strong Connections for Lasting Sobriety

Difficulty Finding an Outpatient Drug Rehab That Serves the LGBTQ Population?

May 21, 2025
Bridging the Gap: Improving Access to LGBTQ+ Friendly Outpatient Drug Rehabs

The Impact of Medication-Assisted Treatment on Recovery Outcomes

May 20, 2025
Transforming Recovery: The Power of Medication-Assisted Treatment in Overcoming Opioid Addiction

The Benefits of Education in Family Therapy Sessions

May 20, 2025
Enhancing Family Resilience Through Educational Approaches

How therapy helps individuals reconnect with their values

May 20, 2025
Rebynding with Meaning: The Power of Therapeutic Relationships

Matthew Perry Converts His Malibu Home Into a Sober Living Center for Men

May 20, 2025
Matthew Perry's Dedication to Supporting Recovery Takes a Personal Turn

Undergoing a Psychiatric Evaluation

May 20, 2025
Understanding Mental Health Assessments: A Comprehensive Guide

The Connection Between Addiction and Chronic Pain

May 20, 2025
Unraveling the Complex Link Between Dependency and Prolonged Pain

How to Manage Emotional Triggers with Cognitive-Behavioral Therapy

May 20, 2025
Mastering Emotional Responses Through Cognitive-Behavioral Strategies

How therapy helps individuals navigate difficult emotions

May 19, 2025
Navigating Emotional Difficulties: The Power of Therapeutic Intervention

How Cognitive-Behavioral Therapy Helps Rebuild Healthy Relationships

May 19, 2025
Transforming Connections: The Power of CBT in Strengthening Relationships

How to Cultivate Patience During the Recovery Process

May 19, 2025
Building Resilience and Hope in Your Recovery Journey

How Can I Help My Son with His Drug Dependence

May 19, 2025
Supporting Families and Navigating Recovery in the Face of Addiction

The Role of Sleep Hygiene in Mental Health Recovery

May 19, 2025
Sleep Hygiene: A Cornerstone in Mental Health Healing

How to Break Phone Addiction Adhd

May 19, 2025
Understanding and Managing Phone Overuse in ADHD

The Importance of Establishing Healthy Routines in Recovery

May 19, 2025
Building a Foundation for Lasting Sobriety

The Connection Between Mental Health and Addiction Recovery

May 16, 2025
Unraveling the Complex Interplay of Mental Health and Addiction Recovery

Marijuana Use in Teens Is the Cause of Increased Illicit Drug Use

May 16, 2025
Rise in Teen Marijuana Use Fuels Broader Drug Epidemic

How to cope with withdrawal symptoms during recovery

May 16, 2025
Understanding and Overcoming Withdrawal Challenges in Recovery

How Long to Rewire Brain From Addiction

May 16, 2025
The Neuroscience of Recovery: Understanding Brain Rewiring After Addiction

How to Handle Grief Without Substances

May 16, 2025
Navigating Loss with Strength and Sobriety

How Medication Management Can Prevent Relapse in Addiction Recovery

May 16, 2025
Strategies for Sustaining Sobriety Through Medication

How to navigate holidays and celebrations while maintaining sobriety

May 16, 2025
Celebrating Sobriety During Festive Seasons

How to manage cravings for substances after long-term recovery

May 15, 2025
Navigating the Challenges of Long-Term Sobriety

The importance of relapse prevention programs

May 15, 2025
Why Long-Term Strategies Are Critical in Addiction Recovery

How to Stay Motivated in Long-Term Recovery

May 15, 2025
Sustaining Your Drive: Keys to Long-Term Recovery Motivation

The Role of Family Therapy in Celebrating Milestones in Recovery

May 15, 2025
Healing Together: Celebrating Recovery with Family Support

How to Help Someone with a Porn Addiction

May 15, 2025
Supporting Loved Ones Through the Journey of Recovery

How Medication Management Supports Long-Term Mental Health in Recovery

May 15, 2025
The Role of Medication Management in Sustaining Mental Wellness

How Long Does Addiction Recovery Take

May 15, 2025
Understanding the Journey of Overcoming Addiction

How Group Counseling Teaches Social Skills for Addiction Recovery

May 14, 2025
Building Bridges to Sobriety: The Power of Group Therapy in Developing Social Skills

How to Create a Family Support Network for Long-Term Recovery

May 14, 2025
Building Bridges to Sobriety: The Key Role of Family Support

How Medication-Assisted Treatment Works for Stimulant Addiction

May 14, 2025
Emerging Approaches in Combating Stimulant Use Disorders

What Does the Bible Say About Drug Addiction

May 14, 2025
Faith and Recovery: Biblical Insights on Overcoming Substance Abuse

The Benefits of Cognitive-Behavioral Therapy for Managing Anxiety in Recovery

May 14, 2025
Unlocking Long-Term Recovery: How CBT Empowers Individuals to Manage Anxiety Effectively

How Family Therapy Builds a Foundation for Lifelong Sobriety

May 14, 2025
Building Bridges to Sobriety: The Power of Family Therapy

How Family Therapy Supports Children Affected by Addiction

May 14, 2025
Building Resilience: The Role of Family Therapy in Healing Children Impacted by Addiction

The Importance of Family Involvement in Recovery Programs

May 13, 2025
Family Engagement: The Key to Sustainable Recovery

How CBT Addresses Anxiety and Depression in Recovery

May 13, 2025
Harnessing the Power of CBT for Mental Health Recovery

How CBT Can Help Address Trauma-Related Substance Use Disorders

May 13, 2025
Integrating Evidence-Based Strategies for Recovery

How to Manage Stress During Outpatient Treatment

May 13, 2025
Navigating Stress for Successful Outpatient Recovery

Where Can I Find IOP Cocaine Treatment in PA?

May 13, 2025
Finding Accessible Outpatient Cocaine Treatment in Pennsylvania

The Importance of Forgiveness in Addiction Recovery

May 13, 2025
Candles of Hope: Embracing Forgiveness for Lasting Recovery

Gaming Addiction Treatment

May 12, 2025
Understanding and Addressing Gaming Disorder: Pathways to Recovery

Resolving to Be Sober

May 12, 2025
Embarking on the Journey to Sobriety: A New Year, A New You

The Importance of Medication Management in Addiction Recovery

May 12, 2025
Enhancing Outcomes Through Professional Medication Oversight

Ways Yoga Helps With Recovery

May 12, 2025
Harnessing the Healing Power of Yoga for Lasting Recovery

How CBT Helps Individuals Regain Confidence in Their Recovery Journey

May 12, 2025
Transforming Recovery: The Power of CBT in Rebuilding Self-Confidence

How to Create a Relapse Prevention Plan in Outpatient Therapy

May 12, 2025
Building a Foundation for Lasting Sobriety: Effective Outpatient Relapse Prevention

How Ambulatory Detox Helps Prevent Relapse in Early Recovery

May 12, 2025
Empowering Recovery: The Role of Outpatient Detox in Sustaining Sobriety

What Makes Group Counseling Different from Individual Therapy

May 9, 2025
Understanding the Key Distinctions and Synergies Between Group and Individual Therapy

Get Started Today

Get in touch with an admission therapist today to embark on your path to recovery immediately.

Get Started

Contact Us Today

info@robinrecovery.com
(888) 586-7168
3616 E Main St, Whitehall, OH 43213
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.