def user_login(r):
    """
    Because dict nesting, this is a special function to return the user_login out of a dict
    """
    if "user" in r:
        if "login" in r["user"]:
            return r["user"]["login"]
    return None