implemented validation for pictures (display properly if a picture is not uploaded)