You're already checking for 'POST' in the previous line. You only need to do `if form.is_valid():` here.