Line validation with and without canvas
new line