MDL-59658 core: Add login/logout steps for course participants scenario