validateName function ob button
Registering a Custom JS Handler function

to a event defined as HTML attribute
obtrusive way of registering

a custom JS handler function
Custom JavaScript Event Handler Function
Introducing preventDefault built-in function
javaScript reads every lines

but a function assigns value only if they are present earlier than the
function