Changing validation logic from data to image