Changed registered and cache the currentUser