Update eccojam.c

fixed input checking