the above 2 lines loop array twice, may just use 'each' like 'title' validation.