Handle credentials storage