Implementing different user registration I have looked elsewhere for the problem I faced, but I cannot get any clue on solving the problem. Consider, based on the type of user, I want to implement different user registration page. In current D8 version, I could add fields at admin/config/people/accounts/fields. Let's say a teacher has fields like
Fname, Lname, ID, Contact, and School Name whereas student has fields like Fname, Lname, Course, and Age.

If I add those mentioned fields in the user table, I won't be able to differentiate whether that is teacher or student. In that case, how do I make two different registrations, one for teacher another for student, and store them as Drupal users so that I can apply functions such as \Drupal::currentUser-&gt;isAuthenticated() on them?
I would argue that you only need one type of user, but want multiple types of profiles. It sounds like you are looking for the profile module. From the module description:


  Why use profiles instead of user account fields?
  
  
  With profile, user account settings and user profiles are conceptually
  different things, e.g. with the “Profile” module enabled users get two
  separate menu links “My account” and “My profile”. 
  Profile allows for
  creating multiple profile types, which may be assigned to roles via
  permissions (e.g. a general profile + a customer profile)
  Profile supports private profile fields, which are only shown to the user owning the profile and to administrators.
  


It also supports multiple registration forms to allow users to register and create their profile in one form.

https://www.drupal.org/project/profile