Custom signup form for user

I had recently created a custom signup page for one of my customer. it’s really simple, just create a custom entry point and place your Signup form fields there.
Once submitted, use users table with proper field insertion and as a last step, use the login form HTML with user provided values and submit the login form the “Log in” the user as soon as they register.