Instead of dealing with all this, use FireBase. Google handles many cloud-based processes like email systems, new user accounts, password resets, etc. All the information you need is on this page.
But developers may want to create their own register and login systems using built-in components, for simplicity or educational purposes, without having to use the "Googlesphere".