login and logout added

added authentication features
and require login for all pages