title: Login authentication for user, guardian and teacher
body: <p>My system requires login for <code>user</code>, <code>teacher</code>, and <code>guardian</code>. I did a little bit of research on the topic and lot of folks talk about utilizing the <code>user type</code> feature. But I don't think that will work for me or maybe <strong>I don't understand how to make it work that way</strong>.</p>
  
  <p>One thing I'm concern about when I'm creating a teacher(something only the admin should do) is that  a teacher can teach multiple subjects and classes. So, in  short a many to many relationship exists between teacher and subject. Whenever I inserting a teacher I have to specify the class(es) he/she teaches. 
  Also a guardian is related to many students, and whenever I'm inserting a guardian I have to specify the student(s) the guardian is related to.</p>
  
  <p>I could create separate migrations, models controllers, and views for all those users(admins, guardians, staffs and teachers) but something tells me that wouldn't be an efficient solution to the problem. What are others alternatives to addressing the issue.</p>
  
  <p>What are others alternatives to addressing this issue, wherein I can have a single login that is use to authenticate different kinds of users and <strong>returns views that are specific to user kind</strong>.</p>
  
  <p>Is there a way that when the administrator is inserting teacher and guardians a user account be generated for them?
  Thanks for the attention!</p>