create login exception and check activation code.