Add checks for number of form parameters received.

Signed-off-by: Vidhant Maini <vidhant_14@hotmail.com>