vk authentication refactoring