changed form layout, add check if img Path/Branch is null