Optimized login selection for students role.
Removed trailing commas across several files. Task #13946