set length of logincode to 20