authentication using local storage