Created a separate function for UUID validation. Added utils module.