Move this validation down so we can still assume id=0 if it's not present, and then redirect if it's non-numeric.
Move this validation down so we can still assume id=0 if it's not present, and then redirect if it's non-numeric.