Added nitro.logout() calls, fixed indentation issues.