Login data storing and session data are now functional