Add check login in m_template and logout
Merge remote-tracking branch 'origin/master'

Conflicts:
	application/models/m_login.php