Added validation of -n opt