Simple validation.
Added name/title not empty validation.