adding login and chaining example