CalcHandler checks and json validation #12