Added function to validate uuid.