Fix validation response. Properly return 400 on invalid parameters.