main.c: added some input validation to parse_args()