Adding warning message for invalid selections