Refactoring signup.html with jinja templating