added Login, logout and restricted access