registering application and key local storage