implemented the dice login