- This Middleware is used to check if the user is a student
- It checks the
req.decoded.LoginType - If the user is a student it will call the next middleware
- If the user is not a student it will send a response with
status 401which meansunauthorized
req.decoded.LoginTypestatus 401 which means unauthorized