Improved validation code in volumes/manager.py