validate animal and image model