validate photo type upload