login with persistence