added local storage for username and apikey