Add register user form and add constructor in register function