Add logout and basic template
Fix bug when environment yaml file is empty