def METHOD_NAME(context, company, fullname):
    if company.lower() == "none": company = None
    if fullname.lower() == "none": fullname = None
    context.company = company
    context.full_name = fullname
    if context.email[1] == "invalid" or not (8 <= len(context.password) <= 50):
        status_code = 400
    else:
        status_code = 201
    context.registration_response, context.status_code = register_account(context.email[0], context.password,
                                                                          context.company, context.full_name,
                                                                          status_code)