@mohit-agarwal - Can you make two changes:

* create a temp variable called `loggedInUserType` and set it to `typeof loggedInUser`. Compare against that instead of repeatedly calling `typeof loggedInUser`
* Reformat to use spaces instead of tabs.