Handle race condition during student login generation (has to be unique)

[#79274428]