handling a case when account_activation is nil, added tests.