Fix duplicate key index on student when registering