Added validation to gallery.