update register html and start logic for login