c/arguments: Refactored validate_argv method and completed validation