Add validation for length of title and change its error message