Password only field for access

I want to make a website where you’ll need a password to access the other pages. I was planning to use Iron Router for the restriction.

My question is, how do I make it so that one password is for guests while the other is for the admin (no usernames)? Is there a meteor package for this?

I was thinking of having a password input for the landing page then something like:

var user; //global variable
if $([ password = ‘guestpassword’ ]) { var user = ‘guest’ }
if $([ password = ‘adminpassword’ ]) { var user = ‘admin’ }

then work with what the ‘guest’ or ‘admin’ can see or do. Does that work? If so, is there a better method?