register.html created;error with flask and buttons when using nod validation