moved html to template file

moved html to temoplate file

moved html to tpl file
template engine in place
simulating template engine
added db insert new user to db functionality
cleaning code