Updated login and templates chapter