case of registration and log-in