changed template structure php
added logout for php
added logout for nodejs