users can now register, login, and logout and are prevented from viewing content if logged out