Add restricted function and login page with view and url mapping.