added errors on photo upload