validate_args function

Validate arguments to regmedint before passing to other functions