handling login page for mainTemplate.xhtml  : 1393/05/16