adding flash to regisration