renamed stats to backend
added register, login and function submission to html page