Does anyone know how to make a username system?

Hi, I plan on making it so only certain people can access certain pages and a monthly premium subscription options. Any help would be great!