core: bug #2648: properly store account details

Signed-off-by: Rafał Malinowski <rafal.przemyslaw.malinowski@gmail.com>