adding validation so that the user must have at least one photo