added login form and restricted pages