def email_lowercase(backend,details, user=None,*args, **kwargs):
    """
    A pipeline to turn the email address to lowercase
    """
    email = details.get("email")
    details['email'] = email.strip().lower() if email else None

    return {"details":details}