added login support, ermissions init setup