add register html
change to rest api