Added new flag images and validation logic