input field validation + lazy loading of gallery