added authentication service and login/out controls