def METHOD_NAME(request):
    """Display form for adding of mac address to watch."""
    account = get_account(request)
    if request.method == 'POST':
        macwatchform = MacWatchForm(request.POST)
        if macwatchform.is_valid():
            # Get user object
            m = MacWatch(
                mac=macwatchform.cleaned_data['macaddress'],
                userid=account,
                description=macwatchform.cleaned_data['description'],
            )
            if macwatchform.prefix_length:
                m.prefix_length = macwatchform.prefix_length
            m.save()
            return HttpResponseRedirect('/macwatch/')
        else:
            messages = ['Illegal input-data']
            info_dict = populate_info_dict(account, messages=messages)
            info_dict['form'] = macwatchform
            return render(request, 'macwatch/addmacwatch.html', info_dict)
    info_dict = populate_info_dict(account)
    macwatchform = MacWatchForm()
    info_dict['form'] = macwatchform
    return render(request, 'macwatch/addmacwatch.html', info_dict)