moved logic for register and connect to another module. Modify the forms and now the basic is working
fixed merge conflict