changed PacketRegistration to automaticaly generate salt