Change disablePersistenceCookies to enablePersistenceCookies, which is disabled by default. Only enable it after upgrade to g5 has been completed to avoid a fatal error finding the non-existent rememberToken column.